home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 98
/
Skunkware 98.iso
/
src
/
interp
/
tclStruct1.2.tar.gz
/
tclStruct1.2.tar
/
tclStruct1.2
/
README
< prev
next >
Wrap
Text File
|
1995-10-17
|
3KB
|
90 lines
TclStruct
by Matthew Costello
matthew.costello@sandiegoca.attgis.com
based on Laurent Demailly's tclbin package
http://hplyot.obspm.fr/~dl/tclbin.html
@(#)tclStruct:README 1.5 95/10/17
1. Introduction
---------------
This directory contains the sources and documentation for tclStruct,
a loadable extension to Tcl. The tclStruct extension supports the
definition of 'C' data structures and the mapping of these (binary)
data structures into Tcl through the use of associative arrays.
It is being used here to test the binary API (Application Programming
Interface) of a software package.
2. Documentation
----------------
The "doc" subdirectory in this release contains a complete set of
reference manual entries for the Tcl commands provided by tclStruct.
Files with extension ".3" are for C library procedures and files
with extension ".n" describe Tcl commands. There are no section 3
manual pages yet.
To print any of the man pages, cd to the "doc" directory and invoke
your favorite variant of troff using the normal -man macros, e.g.
ditroff -man typedef.n
In addition, the "ex" subdirectorie contains some example Tcl code.
The 'real' documentation is the source in this directory.
3. Compilation on Unix
----------------------
This release should compile and run with trivial changes on
any UNIX-like system.
(a) Unpack this distribution (you already have) and apply any
patches.
(b) Run the ./configure script to create the Makefile.
(c) Edit the "Makefile" if necessary to add any necessary compiler
flags.
(c) Type "make". This will create a library archive called
"libtclStruct.a" and an interpreter application called
"tclStruct".
If dynamic loading is available then "make" will create a
shared library instead.
(d) If the make fails you will need to edit the Makefile and try again.
(e) Type "make install" to install everything.
4. Test suite
-------------
There is a test suite in the subdirectory "tests".
To use it just type "make test".
To run the test suite if your tclsh has the 'load' command,
type "make test-dl".
5. Support and bug fixes
------------------------
I'm interested in receiving bug reports and suggestions for improvements
in tclStruct. I do read comp.lang.tcl, but if you want to make sure I
see something also send it to me via email.
6. Dynamic loading
------------------
This library may also be dynamically loaded into any version of Tcl
that supports dynamic loading. Tcl 7.5 (not yet released) will
support dynamic loading using the 'load' command.
When dynamic loading is available the configure script will try to
automatically configure dynamic loading. In this case the generated
Makefile will build a dynamically loadable library rather than
an old-fashioned archive.
7. Compiling on non-UNIX systems
--------------------------------
The tclStruct extension uses only only standard 'C' and should be portable
to any machine on which Tcl will run.